package com.itany.corejava.code08_常用类.泛型练习;

/**
 * @author MissChen
 * @version 1.0
 * @date 2023 年11月16日 11:49
 */
public class College implements SchoolInterface<College>{
    private String name;
    private String hobby;
    private String gender;
    private String schoolName;

    public College(String name, String hobby, String gender, String schoolName) {
        this.name = name;
        this.hobby = hobby;
        this.gender = gender;
        this.schoolName = schoolName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    @Override
    public String show(College college) {
        // return college.ge;
        return college.getSchoolName()+college.getName();
    }
}
